<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>3_4_3-2-绑定复选框</title>
</head>

<body>


  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  <div id="Application">
    <input type="checkbox" value="足球" v-model="checkList" />足球
    <input type="checkbox" value="篮球" v-model="checkList" />篮球
    <input type="checkbox" value="排球" v-model="checkList" />排球
    <h2>您选中的是：{{checkList}}</h2>
  </div>
  <script>
    const App = {
      data() {
        return {
          checkList: [],
        };
      },
    };
    Vue.createApp(App).mount("#Application");
  </script>
</body>

</html>